<script type="text/html" template id="TPL_${table.entityPath}">
    <div class="layui-form" style="padding-top:20px;padding-right:10px;height: 90%;" id="{{d.params.elemId}}Search">
        <#assign fields = table.fields />
<#list fields as field>
<#assign comment=field.comment/>
<#assign propertyName=field.propertyName/>
<#assign propertyType=field.propertyType/>
        <div class="layui-form-item">
            <label class="layui-form-label">${comment}</label>
            <div class="layui-input-block">
            <#if propertyType=='Integer'>
                <select name="${propertyName}"  id="${propertyName}" >
                    <option value="">请选择</option>
                    {{#
                    layui.each(d.params.${propertyName}Arr, function(index, item){
                    }}
                    <option value="{{item[0]}}" {{d.params.${propertyName}==item[0]?'selected':''}}>{{item[1]}}</option>
                    {{# }) }}
                </select>
            <#elseif propertyType=='LocalDateTime'>
                <input type="text" class="layui-input" id="${propertyName}-laydate-range" autocomplete="off" placeholder=" - ">
                <input type="hidden" name="${propertyName}Start">
                <input type="hidden" name="${propertyName}End">
            <#else>
                <input class="layui-input" name="${propertyName}" value="{{d.params.${propertyName}?d.params.${propertyName}:''}}" autocomplete="off">
            </#if>
            </div>
        </div>
</#list>
        <div class="layui-form-item" >
            <span class="layui-form-label"></span>
            <div class="layui-input-block" style="margin-right:0">
                <button class="layui-btn" lay-submit lay-filter="{{d.params.elemId}}-search" id="{{d.params.elemId}}-search">
                    <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
                </button>
                <button class="layui-btn layui-btn-normal" lay-submit lay-filter="{{d.params.elemId}}-refresh">
                    <i class="layui-icon layui-icon-refresh-3 layuiadmin-button-btn"></i>
                </button>
            </div>
        </div>
    </div>
</script>
